package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 联络灯类用户关联表
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "联络灯类用户关联表")
@Data
@Accessors(chain = true)
@TableName(value = "lamp_type_user")
public class LampTypeUser extends PublicPo implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "")
    private Long id;


    /**
     * 联络灯类型id(lamp_type表id)
     */
    @TableField(value = "lamp_type_id")
    @ApiModelProperty(value = "联络灯类型id(lamp_type表id)")
    private Long lampTypeId;

    /**
     * 联络灯通知id(lamp_type_notice表id)
     */
    @TableField(value = "lamp_type_notice_id")
    @ApiModelProperty(value = "联络灯通知id(lamp_type_notice表id)")
    private Long lampTypeNoticeId;

    /**
     * 用户id(user表id)
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id(user表id)")
    private Integer userId;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户名称")
    private String userName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    /**
     * 延迟通知时间(分钟)
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "延迟通知时间(分钟)", hidden = true)
    private Integer delayTime;


    /**
     * 通知方式
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "通知方式(0 微信,1 ai语音,多个,号隔开)", hidden = true)
    private String infoType;


    /**
     * 轮次
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "轮次")
    private Integer roundNum;

    /**
     * 轮次间隔时间
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "轮次间间隔时间")
    private Integer intervalTime;

    private static final long serialVersionUID = 1L;
}